package com.smart.manager.system.entities.views;

import com.smart.common.entities.core.BaseView;
import com.smart.manager.system.entities.enums.AccountState;
import com.smart.manager.system.entities.enums.Sex;
import io.ebean.annotation.View;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 系统-模块管理
 *
 * @author Xiaxuqiu
 */

@Data
@Entity
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@View(name = "system_account")
public class SimpleAccount extends BaseView {

    @Id
    @ApiModelProperty("账号ID")
    Long id ;

    /**
     * 用户真实姓名
     */

    @ApiModelProperty("用户真实姓名")
    private String name;


    @ApiModelProperty("操作员性别")
    private Sex sex;

    @ApiModelProperty("头像地址")
    private String avatar;

    @ApiModelProperty("账号状态")
    private AccountState state;
}